<?php
if (!defined('IN_ZWS')) exit();

class ZoneMoodModel extends RelationModel {
	protected $_link = array('User' => array('mapping_type' => BELONGS_TO,
			'foreign_key' => 'uid',
			'mapping_fields' => 'id,username,email',
			'mapping_name' => 'user',
			),
		'ZoneMood' => array('mapping_type' => HAS_MANY,
			'foreign_key' => 'id',
			'parent_key' => 'pid',
			'condition' => 'pid!=0',
			'mapping_name' => 'comments',
			),
		'ZoneApplaud' => array('mapping_type' => HAS_MANY,
			'foreign_key' => 'cid',
			'parent_key' => 'id',
			'mapping_name' => 'applaud',
			),
		);
}
